import request from '@/utils/request'

// 封装页面渲染接口
export const getMonthCardAPI = (params) => {
  return request.get('/parking/card/list', { params })
}

// 添加月卡
export const addCardAPI = (data) => {
  return request.post('/parking/card', data)
}

// 续费接口 获取编辑页月卡详情
export const renewalCardAPI = (id) => {
  return request.get(`/parking/card/detail/${id}`)
}

// 月卡续费 点击月卡续费 修改完后 发送接口
export const renewalAPI = (data) => {
  return request.post('/parking/card/recharge', data)
}

// 查看月卡详情
export const lookCardAPI = (id) => {
  return request.get(`/parking/card/${id}`)
}

// 删除接口
export const delCardAPI = (ids) => {
  return request.delete(`/parking/card/${ids}`)
}

